<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;

class Admin_users extends Authenticatable
{
    use Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $guarded = []; //不可注入字段

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    // 关联员工职位模型
    public function crm_customer()
    {
        return $this->hasMany('App\crm_customer', 'customer_weihu', 'id');
    }

}
